package com.yc.chaoshi.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author xz
 * @since 2022-08-04
 */
@TableName("oms_cartitem")
public class OmsCartitem implements Serializable {

    private static final long serialVersionUID = 1L;

      private Integer id;

      /**
     * 商品id
     */
      private Integer productId;

      /**
     * 购买数量
     */
      private Integer quantity;

      /**
     * 添加到购物车的价格
     */
      private BigDecimal price;

      /**
     * 商品名称
     */
      private String name;

      /**
     * 商品图片
     */
      private String productPic;

      /**
     * 商品积分
     */
      private String integral;

      /**
     * 用户id
     */
      private Integer userId;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public Integer getProductId() {
        return productId;
    }

      public void setProductId(Integer productId) {
          this.productId = productId;
      }
    
    public Integer getQuantity() {
        return quantity;
    }

      public void setQuantity(Integer quantity) {
          this.quantity = quantity;
      }
    
    public BigDecimal getPrice() {
        return price;
    }

      public void setPrice(BigDecimal price) {
          this.price = price;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }
    
    public String getProductPic() {
        return productPic;
    }

      public void setProductPic(String productPic) {
          this.productPic = productPic;
      }
    
    public String getIntegral() {
        return integral;
    }

      public void setIntegral(String integral) {
          this.integral = integral;
      }
    
    public Integer getUserId() {
        return userId;
    }

      public void setUserId(Integer userId) {
          this.userId = userId;
      }

    @Override
    public String toString() {
        return "OmsCartitem{" +
              "id=" + id +
                  ", productId=" + productId +
                  ", quantity=" + quantity +
                  ", price=" + price +
                  ", name=" + name +
                  ", productPic=" + productPic +
                  ", integral=" + integral +
                  ", userId=" + userId +
              "}";
    }
}
